<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .text {

            color: red;
            /* color: #ff0000; */
            /* color: rgba(red, green, blue, alpha); */


            text-align: center;
            /* ************ 只能水平对齐 ************** */
            /* center 居中对齐 left right */

            text-decoration: underline;
            /* underline: 下划线  none：默认无装饰  overline：上划线  line-through：删除线 */
        }
    </style>
</head>
<body>
    <div class="text">颜色</div>
    <a href="#" style="text-decoration: none;">去掉链接的下划线</a>
</body>
</html>